import { createRouter, createWebHashHistory } from 'vue-router'
import EnterAdvice from './components/EnterAdvice.vue'
import Home from './components/Home.vue'
import UserLogin from './components/UserLogin.vue'
import UserRegister from './components/UserRegister.vue'
import OhlcChart from './components/OhlcChart.vue'
import BarChart from './components/BarChart.vue'
import RandomChart from './components/RandomChart.vue'


const routes = [
    { path: '/', component: Home },
    { path: '/enterAdvice', component: EnterAdvice },
    { path: '/user', component: UserLogin },
    { path: '/register', component: UserRegister },
    { path: '/random', component: RandomChart },

    { path: '/ohlc', component: OhlcChart },
    { path: '/bar', component: BarChart },
  ]

const router = new createRouter({
    routes,
    history: createWebHashHistory()

})

export default router